//导入MySQL模块
const mysql = require('mysql')
//创建数据库对象
const db = mysql.createPool({
    host:'127.0.0.1',
    user:'root',
    password:'zky121214',
    database:'my_db_01'
})
//将数据库db共享出去
module.exports = db